<script language="javascript" src="<?php echo base_url(); ?>application/views/costeo/costeoServicio.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>media/jquery/jquery.min.js"></script>
<script type="text/javascript">
urlBaseX = "<?php echo base_url(); ?>";
</script>






<!--<form class="form-horizontal well" method="get" action="<?php echo base_url(); ?>costeo/insertarVenta" accept-charset="utf-8">

    <legend>DETALLE DE MEDICAMENTOS E INSUMOS</legend>
    <table  class="table table-hover" id="detalle1" width="100%">
        <tr>
             <td  width="05%">N*</td>
            <td  width="15%">Código</td>
            <td  width="15%">Descripcion</td>
            <td  width="20%">Presentación</td>
            <td  width="15%">Precio</td>
            <td  width="15%">Cant.</td>
            <td  width="15%">Total</td>
        </tr>   
        <tr>
            <td >1</td>
            <td ><input type="hidden" name="hidCodProd[]"><input class="input-small" name="codProd[]" type="text"  onblur="obtenerProducto(0)" placeholder="cod. producto" ></td>
            <td ><input class="input-prepend" type="text" name="nombreProd[]" disabled></td>
            <td ><?//php latisoft_comboBoxID("tipoPresentacion[]","tipoPresentacion1","", array(), 0, "Tipo pres.", true,'100',false); ?></td>
            <td ><input type="hidden" name="hidPrecioProd[]"><input class="input-mini" type="text" disabled name="PrecioProd[]"></td>
            <td ><input class="input-mini" type="text" placeholder="cantidad" onblur="obtenerTotal(0)" name="cantidadProd[]"></td>
            <td ><input type="hidden" name="hidTotalParProd[]"><input class="input-mini" type="text" name="TotalParProd[]" disabled></td>
        </tr>
     </table>
   <table width="100%"  class="table table-hover">
        <tr>
            <td  width="05%"></td>
            <td  width="15%"></td>
            <td  width="30%"></td>
            <td  width="15%"></td>
            <td  width="15%" align="left">Precio Total</td>
            <td  align="center" width="15%"><input  type="hidden" name="hidPrecioTotal" ><input class="input-small" type="text" name="PrecioTotal" disabled ></td>
        </tr>

     </table>     
         <div class="span10">
       <p>
           <button type="button" id="1" class="btn btn-mini btn-primary" onclick="agregarFilaMED(id)" >Agregar Item</button>
       
           <button type="button"  id="1" class="btn btn-mini btn-primary" onclick="BorrarUltimaFila(id)">Eliminar Item</button>
       </p>
    </div>

    
    <legend>DETALLE EQUIPOS MÉDICOS</legend>
     <table  class="table table-hover" id="detalle2" width="100%">
        <tr>
            <td  width="05%">N*</td>
            <td  width="15%">Código</td>
            <td  width="30%">Descripcion</td>
            <td  width="15%">Costo</td>
            <td  width="15%">Cantidad</td>
            <td  width="15%">Total</td>
        </tr>
        <tr>
            <td >1</td>
            <td ><input type="hidden" name="hidCodProd[]"><input class="input-small" name="codProd[]" type="text"  onblur="obtenerProducto(0)" placeholder="cod. equipo" ></td>
            <td ><input class="input-xlarge" type="text" name="nombreProd[]" disabled></td>
            <td ><input type="hidden" name="hidPrecioProd[]"><input class="input-small" type="text" disabled name="PrecioProd[]"></td>
            <td ><input class="input-small" type="text" placeholder="cantidad" onblur="obtenerTotal(0)" name="cantidadProd[]"></td>
            <td ><input type="hidden" name="hidTotalParProd[]"><input class="input-small" type="text" name="TotalParProd[]" disabled></td>
        </tr>
     </table>

    

      <table width="100%"  class="table table-hover">
        <tr>
            <td  width="05%"></td>
            <td  width="15%"></td>
            <td  width="30%"></td>
            <td  width="15%"></td>
            <td  width="15%" align="left">Costo Total</td>
            <td  align="center" width="15%"><input class="input-small" type="text" name="PrecioTotal" disabled ></td>
        </tr>
       
     </table>      
    
     <div class="span10">
       <p> 
           <button type="button" id="2" class="btn btn-mini btn-primary" onclick="agregarFila(id)" >Agregar Item</button>
           <button type="button" id="2" class="btn btn-mini btn-primary" onclick="BorrarUltimaFila(id)">Eliminar Item</button>
       </p>
    </div>

     <legend>DETALLE AMBIENTES</legend>
     <table  class="table table-hover" id="detalle3" width="100%">
        <tr>
            <td  width="05%">N*</td>
            <td  width="15%">Código</td>
            <td  width="30%">Descripcion</td>
            <td  width="15%">Costo</td>
            <td  width="15%">Num. días</td>
            <td  width="15%">Total</td>
        </tr>
        <tr>
            <td >1</td>
            <td ><input type="hidden" name="hidCodProd[]"><input class="input-small" name="codProd[]" type="text"  onblur="obtenerProducto(0)" placeholder="cod. ambiente" ></td>
            <td ><input class="input-xlarge" type="text" name="nombreProd[]" disabled></td>
            <td ><input type="hidden" name="hidPrecioProd[]"><input class="input-small" type="text" disabled name="PrecioProd[]"></td>
            <td ><input class="input-small" type="text" placeholder="dias" onblur="obtenerTotal(0)" name="cantidadProd[]"></td>
            <td ><input type="hidden" name="hidTotalParProd[]"><input class="input-small" type="text" name="TotalParProd[]" disabled></td>
        </tr>
     </table>



      <table width="100%"  class="table table-hover">
        <tr>
            <td  width="05%"></td>
            <td  width="15%"></td>
            <td  width="30%"></td>
            <td  width="15%"></td>
            <td  width="15%" align="left">Costo Total</td>
            <td  align="center" width="15%"><input class="input-small" type="text" name="PrecioTotal" disabled ></td>
        </tr>

     </table>

     <div class="span10">
       <p>
           <button type="button" id="3" class="btn btn-mini btn-primary" onclick="agregarFila(id)" >Agregar Item</button>
           <button type="button" id="3" class="btn btn-mini btn-primary" onclick="BorrarUltimaFila(id)">Eliminar Item</button>
       </p>
    </div>

     <legend>DETALLE PERSONAL MÉDICO</legend>
     <table  class="table table-hover" id="detalle4" width="100%">
        <tr>
            <td  width="05%">N*</td>
            <td  width="15%">Código</td>
            <td  width="30%">Tipo Peronal</td>
            <td  width="15%">Costo</td>
            <td  width="15%">Num. horas</td>
            <td  width="15%">Total</td>
        </tr>
        <tr>
            <td >1</td>
            <td ><input type="hidden" name="hidCodProd[]"><input class="input-small" name="codProd[]" type="text"  onblur="obtenerProducto(0)" placeholder="cod. tipo personal" ></td>
            <td ><input class="input-xlarge" type="text" name="nombreProd[]" disabled></td>
            <td ><input type="hidden" name="hidPrecioProd[]"><input class="input-small" type="text" disabled name="PrecioProd[]"></td>
            <td ><input class="input-small" type="text" placeholder="horas" onblur="obtenerTotal(0)" name="cantidadProd[]"></td>
            <td ><input type="hidden" name="hidTotalParProd[]"><input class="input-small" type="text" name="TotalParProd[]" disabled></td>
        </tr>
     </table>



      <table width="100%"  class="table table-hover">
        <tr>
            <td  width="05%"></td>
            <td  width="15%"></td>
            <td  width="30%"></td>
            <td  width="15%"></td>
            <td  width="15%" align="left">Costo Total</td>
            <td  align="center" width="15%"><input class="input-small" type="text" name="PrecioTotal" disabled ></td>
        </tr>

     </table>

     <div class="span10">
       <p>
           <button type="button" id="4" class="btn btn-mini btn-primary" onclick="agregarFila(id)" >Agregar Item</button>
           <button type="button" id="4" class="btn btn-mini btn-primary" onclick="BorrarUltimaFila(id)">Eliminar Item</button>
       </p>
    </div>

     <table class="table table-hover">
        <tr>
            <td  width="35%"></td>
            <td   width="15%" align="right">Monto del Servicio</td>
            <td  width="15%" align="left"><input class="input-small" type="text" name="montoPagado" ></td>
            <td  width="35%"></td>

     </table>
    
    
    <table width="100%">
             <tr>
                    <td width="46%" align="right" ><?php latisoft_button("", "Submit","Consultar","") ?> </td>
                    <td width="8%" align="left"></td>
                    <td width="46%" align="left"><?php latisoft_button("", "Submit","Cancelar","") ?> </td>
             </tr>
    </table>
</form>-->
   
   
   
   
   
   
   